package com.deer.wms.base.system.web.fpStor;


import com.deer.wms.base.system.model.fpStor.FpMoveMaster;
import com.deer.wms.base.system.service.fpStor.FpMoveService;
import com.deer.wms.common.core.controller.BaseController;
import com.deer.wms.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


/**成品入库管理下的 移库*/
@Controller
@RequestMapping("/fpStor/fpMove")
public class FpMoveController extends BaseController {
    private String prefix = "fpStor/fpMove";

    @Autowired
    private FpMoveService fpMoveService;

    /*跳转移库单*/
    @GetMapping("/page")
    public String billInMaster() {
        return prefix + "/fpMove";
    }
    /*移库单据列表*/
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(FpMoveMaster fpMoveMaster) {
        startPage();
        List<FpMoveMaster> list = fpMoveService.selectFpMoveMasterList(fpMoveMaster);
        return getDataTable(list);
    }




}
